<?php

require_once('password.php');

function getConnection()
{
	global $password;
	
	$conn = new mysqli('localhost', 'n01891487', $password, 'n01891487_db');
	
	if ($conn->error)
	{
		throw new Exceprion($conn->error, 1);
	}
	
	return $conn;
	
}

function escapeRow($row, $conn)
{
        $arr = array();
        foreach ($row as $key => $value) {
                $arr[$key] = $conn->real_escape_string($value);
        }
        return $arr;    
}	

function notDeleteEntry()
{
		header('Location: index.php');
}	

